<template>
	<view class="contbox" :class="{show: show}" :style="'height: ' + (show * 166) + 'rpx'">
		<view>{{show * 166}}</view>
		<slot />
	</view>
</template>

<script setup>
	const props = defineProps({
		show: Boolean
	})
</script>

<style lang="scss" scoped>
	.contbox{height: 0; transition: 0.3s; overflow: hidden;}
	.contbox.show{ transition: 0.3s;}
</style>